package com.swak.oss;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * Oss 配置
 * 
 * @author lifeng
 */
public interface OssConfig {

	/**
	 * APP Key
	 * 
	 * @return
	 */
	String getAccessKeyId();

	/**
	 * APP Secret
	 * 
	 * @return
	 */
	String getAccessKeySecret();

	/**
	 * 不同的类型存储在不同的地方
	 * 
	 * @author lifeng
	 */
	@Getter
	@Setter
	@Accessors(chain = true)
	public static class Bucket {
		private String endpoint;
		private String name;
		private String domain;
		private boolean auth = true;
	}
}